package com.flx.jvm;

/**
 * @Author Fenglixiong
 * @Create 2021/11/30 15:56
 * @Description 查看内存分配情况
 * 参数：-XX:+PrintGCDetails
 **/
public class GCTest {

    public static void main(String[] args) throws InterruptedException {

//        byte[] array1 = new byte[60000*1024];//60*1000*1K = 60MB
//        byte[] array2 = new byte[8000*1024];//8*1000*1K = 8MB
//        byte[] array3 = new byte[1000*1024];//1*1000*1K = 1MB
        byte[] array4 = new byte[1000*1024];//1*1000*1K = 1MB
        byte[] array5 = new byte[1000*1024];//1*1000*1K = 1MB
        byte[] array6 = new byte[1000*1024];//1*1000*1K = 1MB

        Thread.sleep(60*60*1000);

    }

}
